const Local = window.location;
// const host = "http://"+Local.host;
// const host = `${Local.protocol}//${ Local.port == '3000' ? Local.hostname +':9005' : Local.host }`;
const host = "http://175.6.46.164:9005"
// const host = XJXQ.project_server;
// console.log('host:',host)
    // const portalHost = GeoAPP.Sites.SgsHost.Host;
const portalHost = "http://175.6.46.164:8688";
const copyright = "版权所有：延安新区管理委员会&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;技术支持：北京超图软件股份有限公司";
const Sites = {
    zdxmmanager_site: "/zdxm",
    appframework: "/appframework",
    Cas: portalHost + '/cas',
    Geoesbmengine: portalHost + '/geoesbmengine',
    Portal: portalHost + '/portal'
};
module.exports = {
    host: host,
    Sites: Sites,
    mediaType: [{
            name: "简报",
            value: "1"
        },
        {
            name: "实施计划",
            value: "2"
        },
        {
            name: "现场照片",
            value: "3"
        },
        {
            name: "实施甘特图",
            value: "4"
        },
        {
            name: "关键节点资料",
            value: "5"
        }

    ],
    //湘江新区片区
    projectXjxqpq:[{
        name:"梅溪湖",
        value:1
    },{
        name:"大王山",
        value:2
    },{
        name:"滨江",
        value:3
    },{
        name:"洋湖",
        value:4
    },{
        name:"跨片区或片区外",
        value:5
    },{
        name:"月亮岛",
        value:6
    },{
        name:"高铁西城",
        value:7
    },{
        name:"沩东新城",
        value:8
    },{
        name:"长沙高新区",
        value:9
    },{
        name:"宁乡经开区",
        value:10
    },{
        name:"宁乡高新区",
        value:11
    },{
        name:"望城经开区",
        value:12
    },{
        name:"岳麓高新区",
        value:13
    },{
        name:"岳麓区（片区园区外）",
        value:14
    }
    ,{
        name:"宁乡市（片区园区外）",
        value:15
    },{
        name:"望城区（片区园区外）",
        value:16
    }],
    projectType: [ //项目类别（湘江新区项目修改）
        {
            name:"全部",
            value:""
        },
        {
            name: "基础设施",
            value: "1"
        },
        {
            name: "产业项目",
            value: "2"
        }
    ],
    projectProgress: [ //投资类型（湘江新区项目修改）
        {
            name:"全部",
            value:""
        },
        {
            name: "政府投资类项目",
            value: "政府投资类项目"
        },
        {
            name: "社会投资类项目",
            value: "社会投资类项目"
        }
    ],
    isStatisticss: [{
        name: "是",
        value: "1"
    }, {
        name: "否",
        value: "0"
    }], //是否入统
    //建设性质（湘江新区项目修改）
    constructionEvolves: [{
        name:"全部",
        value:""
    },{
        name:"新建",
        value:1
    },{
        name:"续建",
        value:2
    },{
        name:"预备",
        value:3
    },{
        name:"维修改造",
        value:83
    },{
        name:"前期研究",
        value:4
    }], 
    projImplementOrgs: [], //项目实施单位
    SGSConfig: {
        getNewsClass: Sites.zdxmmanager_site + "/services/news/news/class",
        getNews: Sites.zdxmmanager_site + "/services/news/news",
        getArchive: Sites.zdxmmanager_site,
        ticket: Sites.Cas + "/rest/tickets",
        getUser: Sites.Geoesbmengine + "/services/servicemanager/user/current",
        httpproxy: Sites.Webframe + "/biz/httpproxy/httpproxy.jsp"
    },
    LoginConfig: {
        sites: [
            `${portalHost}/geoesbmengine/cas.html`,
            `${host}/zdxmmanager-site/cas.html`, //appNav站点host  开发环境需特殊处理
        ]
    },
    ServiceConfig: {
        projectDetailUrl: host + Sites.zdxmmanager_site + "/services/projects/projectDetail",
        projectDetailsUrl: host + Sites.zdxmmanager_site + "/services/projects/projectDetails",
        proYearScheduleUrl: host + Sites.zdxmmanager_site + "/services/projects/proYearSchedule",
        proYearSchedulesUrl: host + Sites.zdxmmanager_site + "/services/projects/proYearSchedules",
        proMonthScheduleUrl: host + Sites.zdxmmanager_site + "/services/projects/proMonthSchedule",
        proMonthSchedulesUrl: host + Sites.zdxmmanager_site + "/services/projects/proMonthSchedules",
        projectMediaUrl: host + Sites.zdxmmanager_site + "/services/projects/projectMedia",
        projectMediasUrl: host + Sites.zdxmmanager_site + "/services/projects/projectMedias",
        updateProjectMediaUrl: host + Sites.zdxmmanager_site + "/services/projects/updateProjectMedia",
        archiveUrl: host + Sites.zdxmmanager_site + "/services/projects/archiveFile",
        exportProjectsUrl: host + Sites.zdxmmanager_site + "/services/projects/exportProjects",
        uploadExcelDataUrl: host + Sites.zdxmmanager_site + "/services/projects/uploadProjectData",
        getMapByIdUrl: host + Sites.appframework + "/services/map/manager/get",
        getModulesByIdUrl: host + Sites.appframework + "/services/module/webModules",
        getMap: host + Sites.appframework + "/services/map/manager/query.json?pageindex=1&pageSize=1000&userid=41",
        uploadMonthData: host + Sites.zdxmmanager_site + "/services/projects/uploadMonthData",
        exportMonthData: host + Sites.zdxmmanager_site + "/services/projects/exportMonthData",
        queryProMonthScheduleByTime: host + Sites.zdxmmanager_site + "/services/projects/proMonthScheduleList"
    },
    copyright: copyright,
    jsfzId: "9f1e327f831545289b1c93e82d022415",
    zdxmId: "e5c5ccdc1b4a4695b2beaab001da367b",
    manageModule: {
        downLoadTemplate: "static/template/template.xlsx",
        downLoadTemplate2: "static/template/template2.xlsx"
    }


}